home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / libkcal / resourceremoteconfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.9 KB  |  69 lines

  1. /*
  2.     This file is part of libkcal.
  3.  
  4.     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
  5.     Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
  6.     Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
  7.  
  8.     This library is free software; you can redistribute it and/or
  9.     modify it under the terms of the GNU Library General Public
  10.     License as published by the Free Software Foundation; either
  11.     version 2 of the License, or (at your option) any later version.
  12.  
  13.     This library is distributed in the hope that it will be useful,
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.     Library General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU Library General Public License
  19.     along with this library; see the file COPYING.LIB.  If not, write to
  20.     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21.     Boston, MA 02110-1301, USA.
  22. */
  23. #ifndef KCAL_RESOURCEREMOTECONFIG_H
  24. #define KCAL_RESOURCEREMOTECONFIG_H
  25.  
  26. #include <qradiobutton.h>
  27. #include <qbuttongroup.h>
  28. #include <kurlrequester.h>
  29.  
  30. #include <kresources/resource.h>
  31. #include <kresources/configwidget.h>
  32.  
  33. #include <kdepimmacros.h>
  34.  
  35. namespace KCal {
  36.  
  37. class ResourceCachedReloadConfig;
  38. class ResourceCachedSaveConfig;
  39.  
  40. /**
  41.   Configuration widget for remote resource.
  42.   
  43.   @see ResourceRemote
  44. */
  45. class KDE_EXPORT ResourceRemoteConfig : public KRES::ConfigWidget
  46.     Q_OBJECT
  47.   public:
  48.     ResourceRemoteConfig( QWidget *parent = 0, const char *name = 0 );
  49.  
  50.   public slots:
  51.     virtual void loadSettings( KRES::Resource *resource );
  52.     virtual void saveSettings( KRES::Resource *resource );
  53.  
  54.   private:
  55.     KURLRequester *mDownloadUrl;
  56.     KURLRequester *mUploadUrl;
  57.  
  58.     ResourceCachedReloadConfig *mReloadConfig;
  59.     ResourceCachedSaveConfig *mSaveConfig;
  60.  
  61.     class Private;
  62.     Private *d;
  63. };
  64.  
  65. }
  66.  
  67. #endif
  68.